package com.ruoyi.vehicle.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆列表对象 vehicle
 * 
 * @author ruoyi
 * @date 2025-07-08
 */
public class Vehicle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆id */
    private Long id;

    /** 车辆品牌 */
    @Excel(name = "车辆品牌")
    private String brand;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String license;

    /** 车辆型号 */
    @Excel(name = "车辆型号")
    private String model;

    /** 车辆识别码 */
    @Excel(name = "车辆识别码")
    private String code;

    /** 车辆排量 */
    @Excel(name = "车辆排量")
    private String displacement;

    /** 车辆状态：空闲1 占用2 */
    @Excel(name = "车辆状态：空闲1 占用2")
    private String status;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private String type;

    /** 车辆颜色 */
    @Excel(name = "车辆颜色")
    private String color;

    /** 里程数 */
    @Excel(name = "里程数")
    private String kilometers;

    /** 上牌时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上牌时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regTime;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 购买价格 */
    @Excel(name = "购买价格")
    private String price;

    /** 电池类型 */
    @Excel(name = "电池类型")
    private String batteryType;

    /** 电子围栏车辆绑定状态 已绑定1 未绑定0 */
    @Excel(name = "电子围栏车辆绑定状态 已绑定1 未绑定0")
    private String geofenceBindStatus;

    /** 电子围栏id */
    @Excel(name = "电子围栏id")
    private Long geofenceId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }

    public void setLicense(String license) 
    {
        this.license = license;
    }

    public String getLicense() 
    {
        return license;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setDisplacement(String displacement) 
    {
        this.displacement = displacement;
    }

    public String getDisplacement() 
    {
        return displacement;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }

    public void setKilometers(String kilometers) 
    {
        this.kilometers = kilometers;
    }

    public String getKilometers() 
    {
        return kilometers;
    }

    public void setRegTime(Date regTime) 
    {
        this.regTime = regTime;
    }

    public Date getRegTime() 
    {
        return regTime;
    }

    public void setBuyTime(Date buyTime) 
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime() 
    {
        return buyTime;
    }

    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }

    public void setBatteryType(String batteryType) 
    {
        this.batteryType = batteryType;
    }

    public String getBatteryType() 
    {
        return batteryType;
    }

    public void setGeofenceBindStatus(String geofenceBindStatus) 
    {
        this.geofenceBindStatus = geofenceBindStatus;
    }

    public String getGeofenceBindStatus() 
    {
        return geofenceBindStatus;
    }

    public void setGeofenceId(Long geofenceId) 
    {
        this.geofenceId = geofenceId;
    }

    public Long getGeofenceId() 
    {
        return geofenceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brand", getBrand())
            .append("license", getLicense())
            .append("model", getModel())
            .append("code", getCode())
            .append("displacement", getDisplacement())
            .append("status", getStatus())
            .append("type", getType())
            .append("color", getColor())
            .append("kilometers", getKilometers())
            .append("regTime", getRegTime())
            .append("buyTime", getBuyTime())
            .append("price", getPrice())
            .append("batteryType", getBatteryType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("geofenceBindStatus", getGeofenceBindStatus())
            .append("geofenceId", getGeofenceId())
            .toString();
    }
}
